import fly from '@/utils/request'
import URL from '@/utils/host'
// 拼拼班列表
export function pingList(data){
    return fly.request({
        method: 'get', 
        url:URL.host2+'ping/list',
        params: data
    })
}
// 拼拼班详情
export function pingInfo(data){
    return fly.request({
        method: 'get', 
        url:URL.host2+'ping/info',
        params: data
    })
}
// 拼课人员
export function pingMenmber(data){
    return fly.request({
        method: 'get', 
        url:URL.host2+'ping/ping_team',
        params: data
    })
}
//发起评课
export function pingCreate(data){
    return fly.request({
        method: 'post', 
        url:URL.host2+'ping/create_team',
        body: data
    })
}
//单独购买
export function pingCreateOne(data){
    return fly.request({
        method: 'post', 
        url:URL.host2+'ping/buy',
        body: data
    })
}
// 参与拼团
export function pingJoin(data){
    return fly.request({
        method: 'post', 
        url:URL.host2+'ping/join_team',
        body: data
    })
}